package com.nanhu.test.slide;

import com.nanhu.test.R;
import com.nanhu.test.interpolator.EasingType.Type;
import com.nanhu.test.interpolator.ExpoInterpolator;
import com.nanhu.test.widget.MyPanel;
import com.nanhu.test.widget.MyPanel.OnPanelListener;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

public class MyChouti extends Activity implements OnPanelListener{
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.my_chouti_layout);
		
		MyPanel panel;
		
		panel = (MyPanel) findViewById(R.id.rightPanel);
        panel.setOnPanelListener(this);
        panel.setInterpolator(new ExpoInterpolator(Type.OUT));
        
	}

	@Override
	public void onPanelClosed(MyPanel panel) {
		String panelName = getResources().getResourceEntryName(panel.getId());
		Log.d("TestPanels", "MyPanel [" + panelName + "] closed");
	}

	@Override
	public void onPanelOpened(MyPanel panel) {
		String panelName = getResources().getResourceEntryName(panel.getId());
		Log.d("TestPanels", "MyPanel [" + panelName + "] opened");
	}
	
	
}
